package com.jojo.bubble.service.impl;

import com.jojo.bubble.entity.Balance;
import com.jojo.bubble.dao.BalanceDao;
import com.jojo.bubble.service.BalanceService;
import org.springframework.stereotype.Service;

import java.util.List;

import javax.annotation.Resource;

/**
 * 提现表(Balance)表服务实现类
 *
 * @author jojo
 * @since 2023-08-21 04:46:43
 */
@Service("balanceService")
public class BalanceServiceImpl implements BalanceService {
    @Resource
    private BalanceDao balanceDao;

    @Override
    public int count(Balance record) {
        return this.balanceDao.count(record);
    }

    @Override
    public int insert(Balance record) {
        return this.balanceDao.insert(record);
    }

    @Override
    public int update(Balance record) {
        return this.balanceDao.update(record);
    }

    @Override
    public Balance getInfo(int id) {
        return this.balanceDao.queryById(id);
    }

    @Override
    public List<Balance> getList(Balance record) {
        return this.balanceDao.getList(record);
    }

    @Override
    public int delete(int id) {
        return this.balanceDao.delete(id);
    }
}
